package daointerface;

import java.util.ArrayList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import DAO.DirectorateDAOImp;
import ValueObject.DirectorateVO;

public class DirectorateDAOImpTest {
    private DirectorateDAOImp daoImp;
    @Before
    public void setUp() throws Exception {
        daoImp = new DirectorateDAOImp();
    }

    @After
    public void tearDown() throws Exception {
        daoImp = null;
    }

    @Test
    public void testgetListAll() {
        String key = "T";
        try {
            ArrayList<DirectorateVO> allList = daoImp.getList(key);
            Arr
        } catch (Exception ex) {
            // TODO: handle exception
        }
    }
    public ArrayList<DirectorateVO> testGetListKeyT() {
        ArrayList<DirectorateVO> directorateList = new ArrayList<DirectorateVO>();
        DirectorateVO directorate = new DirectorateVO("1 directorate", "1 directorate short", "", "1 address",
                "1 address", "", "1 PSC", "", "Nam", "", "", "", "1 directorate full", "12345678", "12345678",
                "1d@gmail.com", "1dweb.com.vn", "11111", "23423", true);
        directorateList.add(directorate);
    }

}
